//
//  JLActCell.m
//  BaseProject
//
//  Created by 王洋 on 2021/4/22.
//  Copyright © 2021 王洋. All rights reserved.
//

#import "JLActCell.h"

@implementation JLActCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.01 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        
        [self.mainImageView pp_clipCorners:UIRectCornerAllCorners radius:25 border:3 color:UIColorHex(0xD46D26)];
        
    });
}

- (void)fillCellWithModel:(CommonShopCartModel *)model {
    
    [self.mainImageView sd_setImageWithURL:[NSURL URLWithString:model.sellerGoodsSpecs.specImage] placeholderImage:[UIImage imageNamed:@"placeholder"]];
    self.nameLab.text = model.sellerGoodsModel.goodsName;
    self.priceLab.text =[NSString stringWithFormat:@"¥%@",[Utilities changeDoubleToString:model.sellerGoodsSpecs.specPrice]];


//    self.priceLab.text =[NSString stringWithFormat:@"¥%@",[Utilities changeDoubleToString:model.sellerGoodsSpecs.specPrice]];

    [self.selBtn setImage:[UIImage imageNamed:model.isSel?@"act_pro_sel":@""] forState:UIControlStateNormal];
}



@end
